﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Bit.Art.Core.Models
{
    /// <summary>
    /// 交易限制信息
    /// </summary>
    public class TradingLimitInfo
    {
        /// <summary>
        /// 交易对
        /// </summary>
        public string Quote { get; set; }

        /// <summary>
        /// 数字币
        /// </summary>
        public string Coin { get; set; }

        /// <summary>
        /// 最小下单量，以交易对（<see cref="Quote"/>）计量
        /// </summary>
        public decimal MinimumOrderSize { get; set; }

        /// <summary>
        /// 最大下单量，以交易对（<see cref="Quote"/>）计量
        /// </summary>
        public decimal MaximumOrderSize { get; set; }

        /// <summary>
        /// 最大下单交易价格，默认是0
        /// </summary>
        public decimal? MaximumTradingPrice { get; set; }

        /// <summary>
        /// 最小下单交易价格
        /// </summary>
        public decimal? MinimumTradingPrice { get; set; }

        /// <summary>
        /// 下单数量的最小精度，默认是小数点后3个零
        /// </summary>
        public int VolumePrecision { get; set; } = 3;

        /// <summary>
        /// 下单价格的最小精度，默认是小数点后8个零
        /// </summary>
        public int QuotePrecision { get; set; } = 8;

        /// <summary>
        /// 下单价格的最小精度，默认是小数点后8个零
        /// </summary>
        public int BasePrecision { get; set; } = 8;
    }
}
